//
//  Song.h
//  HelloWorld
//
//  Created by 曾泽昱 on 2024/7/10.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface Song : NSObject{
    @public
    NSString* title;
    NSString* artist;
    long int duration;
    
}

// 操作方法
-(void)start;
-(void)stop;
-(void)seek:(long int)time;
// 访问成员变量方法
@property(readwrite,atomic) NSString* title;
@property(nonatomic,retain,readwrite) NSString* artist;
// - 代表实例方法
// + 代表类方法
-(NSString*)getTitle;
-(void)setTitle:(NSString*)newTitle;


@end

NS_ASSUME_NONNULL_END
